package com.initialize.pub.dao;

import com.initialize.pub.mybatis.plus.entity.BingImg;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: jane
 * Date: 2020/3/12
 * Time: 9:34 下午
 * Description:
 */
@Repository
public interface BingImgDAO {
    @Select({
            "SELECT * FROM bing_img  ORDER BY _id DESC LIMIT #{num}"
    })
    List<BingImg> getLatestByNum(@Param("num") int num);
}